import request from '../utils/request'

export function create(params) {
  return request({
    url: '/member/giftCard/create',
    method: 'post',
    params: params
  })
}

export function update(params) {
  return request({
    url: '/member/giftCard/update',
    method: 'post',
    params: params
  })
}
export function receiver(params) {
  return request({
    url: '/member/giftCard/receiver',
    method: 'post',
    params: params
  })
}

export function list(params) {
  return request({
    url: '/member/giftCard/list',
    method: 'get',
    params:params
  })
}

export function find(id) {
  return request({
    url: '/giftCard/find/' + id,
    method: 'get'
  })
}

export function summary() {
  return request({
    url: '/member/giftCard/summary',
    method: 'post',
  })
}